package tests

object MyTest extends TestCase with Application {

  val b1 = before("before msg") {
    println("ok")
  }
  assert(befores.size == 1)

  test("null") {
    println("ok")
  }.skip("sis")
  assert(tests.size == 1)

  this skip "test description" timeout 10 s {
    
  }
  assert(tests.size == 2)

  "because not implemented yet" skip "calcule sqrt" timeout 10 s {
    
  }
  assert(tests.size == 3)
  
  "test description" timeout 10 s {
    
  }
  assert(tests.size == 4)

  test("optional description", classOf[ArithmeticException]) {
    assert(1/0 > 0)
  }
  assert(tests.size == 5)

  ("test description" throws classOf[ArithmeticException]) {
    assert(1/0 > 0)
  }.skip
  assert(tests.size == 6)

  val test1 = "test 3 greater than 1" {
    println(3 > 1)
  }.skip("kosks")
  assert(tests.size == 8)

  test1.addBefore(b1)
  println(test1.befores)

  after("null") {
    println("ok")
  }
  assert(afters.size == 1)
}
// vim: set ts=4 sw=4 et:
